home *** CD-ROM | disk | FTP | other *** search
/ Programmer Plus 2007 / Programmer-Plus-2007.iso / Programming / ActiveX Controlls / XP Suite / DATA1.CAB / XP_Command_Button_Sample_Files / Form1.frm (.txt) next >
Encoding:
Visual Basic Form  |  2003-04-24  |  10.4 KB  |  319 lines

  1. VERSION 5.00
  2. Object = "{083C8784-F106-4CC2-9930-876218A6B74C}#1.1#0"; "ciaXPButton.ocx"
  3. Begin VB.Form Form1 
  4.    Caption         =   "XP Style Command Button Demo, Page 1"
  5.    ClientHeight    =   3960
  6.    ClientLeft      =   60
  7.    ClientTop       =   450
  8.    ClientWidth     =   9465
  9.    LinkTopic       =   "Form1"
  10.    LockControls    =   -1  'True
  11.    ScaleHeight     =   3960
  12.    ScaleWidth      =   9465
  13.    StartUpPosition =   3  'Windows Default
  14.    Begin ciaXPButton.XPButton ciaButton9 
  15.       Height          =   360
  16.       Left            =   7095
  17.       TabIndex        =   14
  18.       Top             =   3435
  19.       Width           =   1065
  20.       _ExtentX        =   1879
  21.       _ExtentY        =   635
  22.       Caption         =   "Next >>"
  23.       OriginalPicSizeW=   0
  24.       OriginalPicSizeH=   0
  25.       BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
  26.          Name            =   "MS Sans Serif"
  27.          Size            =   8.25
  28.          Charset         =   0
  29.          Weight          =   400
  30.          Underline       =   0   'False
  31.          Italic          =   0   'False
  32.          Strikethrough   =   0   'False
  33.       EndProperty
  34.       MouseIcon       =   "Form1.frx":0000
  35.       MousePointer    =   99
  36.    End
  37.    Begin ciaXPButton.XPButton XPButton1 
  38.       Height          =   1080
  39.       Left            =   3975
  40.       TabIndex        =   8
  41.       Top             =   2220
  42.       Width           =   2325
  43.       _ExtentX        =   4101
  44.       _ExtentY        =   1905
  45.       Picture         =   "Form1.frx":031A
  46.       PictureWidth    =   64
  47.       PictureHeight   =   64
  48.       PictureSize     =   3
  49.       OriginalPicSizeW=   20
  50.       OriginalPicSizeH=   20
  51.       BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
  52.          Name            =   "MS Sans Serif"
  53.          Size            =   8.25
  54.          Charset         =   0
  55.          Weight          =   400
  56.          Underline       =   0   'False
  57.          Italic          =   0   'False
  58.          Strikethrough   =   0   'False
  59.       EndProperty
  60.       MouseIcon       =   "Form1.frx":0874
  61.       MousePointer    =   99
  62.    End
  63.    Begin ciaXPButton.XPButton ciaButton3 
  64.       Height          =   525
  65.       Left            =   270
  66.       TabIndex        =   7
  67.       Top             =   1875
  68.       Width           =   1470
  69.       _ExtentX        =   2593
  70.       _ExtentY        =   926
  71.       ButtonStyle     =   2
  72.       Picture         =   "Form1.frx":0B8E
  73.       PictureWidth    =   20
  74.       PictureHeight   =   20
  75.       PictureSize     =   2
  76.       OriginalPicSizeW=   20
  77.       OriginalPicSizeH=   20
  78.       PictureHover    =   "Form1.frx":10E8
  79.       BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
  80.          Name            =   "MS Sans Serif"
  81.          Size            =   8.25
  82.          Charset         =   0
  83.          Weight          =   400
  84.          Underline       =   0   'False
  85.          Italic          =   0   'False
  86.          Strikethrough   =   0   'False
  87.       EndProperty
  88.       MouseIcon       =   "Form1.frx":1642
  89.       MousePointer    =   99
  90.       DropDown        =   -1  'True
  91.    End
  92.    Begin ciaXPButton.XPButton ciaButton2 
  93.       Height          =   525
  94.       Left            =   270
  95.       TabIndex        =   6
  96.       Top             =   1125
  97.       Width           =   1470
  98.       _ExtentX        =   2593
  99.       _ExtentY        =   926
  100.       Picture         =   "Form1.frx":195C
  101.       PictureWidth    =   20
  102.       PictureHeight   =   20
  103.       PictureSize     =   2
  104.       OriginalPicSizeW=   20
  105.       OriginalPicSizeH=   20
  106.       PictureHover    =   "Form1.frx":1EB6
  107.       BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
  108.          Name            =   "MS Sans Serif"
  109.          Size            =   8.25
  110.          Charset         =   0
  111.          Weight          =   400
  112.          Underline       =   0   'False
  113.          Italic          =   0   'False
  114.          Strikethrough   =   0   'False
  115.       EndProperty
  116.       MouseIcon       =   "Form1.frx":2410
  117.       MousePointer    =   99
  118.    End
  119.    Begin ciaXPButton.XPButton ciaButton1 
  120.       Height          =   525
  121.       Left            =   270
  122.       TabIndex        =   5
  123.       Top             =   375
  124.       Width           =   1470
  125.       _ExtentX        =   2593
  126.       _ExtentY        =   926
  127.       ButtonStyle     =   0
  128.       Picture         =   "Form1.frx":272A
  129.       PictureWidth    =   20
  130.       PictureHeight   =   20
  131.       PictureSize     =   2
  132.       OriginalPicSizeW=   20
  133.       OriginalPicSizeH=   20
  134.       PictureHover    =   "Form1.frx":2C84
  135.       BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
  136.          Name            =   "MS Sans Serif"
  137.          Size            =   8.25
  138.          Charset         =   0
  139.          Weight          =   400
  140.          Underline       =   0   'False
  141.          Italic          =   0   'False
  142.          Strikethrough   =   0   'False
  143.       EndProperty
  144.       MouseIcon       =   "Form1.frx":31DE
  145.       MousePointer    =   99
  146.       DropDown        =   -1  'True
  147.    End
  148.    Begin VB.CheckBox Check1 
  149.       Caption         =   "Has Focus Rectangle"
  150.       Height          =   495
  151.       Left            =   270
  152.       TabIndex        =   4
  153.       Top             =   2655
  154.       Value           =   1  'Checked
  155.       Width           =   2865
  156.    End
  157.    Begin ciaXPButton.XPButton XPButton2 
  158.       Height          =   615
  159.       Left            =   4950
  160.       TabIndex        =   9
  161.       Top             =   1215
  162.       Width           =   1560
  163.       _ExtentX        =   2752
  164.       _ExtentY        =   1085
  165.       Picture         =   "Form1.frx":34F8
  166.       OriginalPicSizeW=   20
  167.       OriginalPicSizeH=   20
  168.       BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
  169.          Name            =   "MS Sans Serif"
  170.          Size            =   8.25
  171.          Charset         =   0
  172.          Weight          =   400
  173.          Underline       =   0   'False
  174.          Italic          =   0   'False
  175.          Strikethrough   =   0   'False
  176.       EndProperty
  177.       MouseIcon       =   "Form1.frx":3A52
  178.       MousePointer    =   99
  179.    End
  180.    Begin ciaXPButton.XPButton XPButton3 
  181.       Height          =   480
  182.       Left            =   5730
  183.       TabIndex        =   10
  184.       Top             =   285
  185.       Width           =   1470
  186.       _ExtentX        =   2593
  187.       _ExtentY        =   847
  188.       Picture         =   "Form1.frx":3D6C
  189.       PictureWidth    =   20
  190.       PictureHeight   =   20
  191.       PictureSize     =   2
  192.       OriginalPicSizeW=   20
  193.       OriginalPicSizeH=   20
  194.       BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
  195.          Name            =   "MS Sans Serif"
  196.          Size            =   8.25
  197.          Charset         =   0
  198.          Weight          =   400
  199.          Underline       =   0   'False
  200.          Italic          =   0   'False
  201.          Strikethrough   =   0   'False
  202.       EndProperty
  203.       MouseIcon       =   "Form1.frx":42C6
  204.       MousePointer    =   99
  205.    End
  206.    Begin ciaXPButton.XPButton ciaButton10 
  207.       Height          =   360
  208.       Left            =   8235
  209.       TabIndex        =   15
  210.       Top             =   3435
  211.       Width           =   1065
  212.       _ExtentX        =   1879
  213.       _ExtentY        =   635
  214.       Caption         =   "Exit"
  215.       OriginalPicSizeW=   0
  216.       OriginalPicSizeH=   0
  217.       BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
  218.          Name            =   "MS Sans Serif"
  219.          Size            =   8.25
  220.          Charset         =   0
  221.          Weight          =   400
  222.          Underline       =   0   'False
  223.          Italic          =   0   'False
  224.          Strikethrough   =   0   'False
  225.       EndProperty
  226.       MouseIcon       =   "Form1.frx":45E0
  227.       MousePointer    =   99
  228.    End
  229.    Begin VB.Label Label2 
  230.       AutoSize        =   -1  'True
  231.       Caption         =   "Default Size 16x16"
  232.       Height          =   195
  233.       Index           =   5
  234.       Left            =   5745
  235.       TabIndex        =   13
  236.       Top             =   795
  237.       Width           =   1335
  238.    End
  239.    Begin VB.Label Label2 
  240.       AutoSize        =   -1  'True
  241.       Caption         =   "Size 32x32"
  242.       Height          =   195
  243.       Index           =   1
  244.       Left            =   5010
  245.       TabIndex        =   12
  246.       Top             =   1860
  247.       Width           =   780
  248.    End
  249.    Begin VB.Label Label2 
  250.       AutoSize        =   -1  'True
  251.       Caption         =   "Size custom 64x64"
  252.       Height          =   195
  253.       Index           =   0
  254.       Left            =   4410
  255.       TabIndex        =   11
  256.       Top             =   3330
  257.       Width           =   1335
  258.    End
  259.    Begin VB.Label Label2 
  260.       AutoSize        =   -1  'True
  261.       Caption         =   "Style = 3 - Windows XPIE"
  262.       Height          =   195
  263.       Index           =   4
  264.       Left            =   1860
  265.       TabIndex        =   3
  266.       Top             =   2025
  267.       Width           =   1815
  268.    End
  269.    Begin VB.Label Label2 
  270.       AutoSize        =   -1  'True
  271.       Caption         =   "Style = 2 - Windows XP"
  272.       Height          =   195
  273.       Index           =   3
  274.       Left            =   1860
  275.       TabIndex        =   2
  276.       Top             =   1290
  277.       Width           =   1665
  278.    End
  279.    Begin VB.Label Label2 
  280.       AutoSize        =   -1  'True
  281.       Caption         =   "Style = 1 - Office XP"
  282.       Height          =   195
  283.       Index           =   2
  284.       Left            =   1860
  285.       TabIndex        =   1
  286.       Top             =   555
  287.       Width           =   1425
  288.    End
  289.    Begin VB.Label Label1 
  290.       Caption         =   $"Form1.frx":48FA
  291.       Height          =   1095
  292.       Left            =   6900
  293.       TabIndex        =   0
  294.       Top             =   1485
  295.       Width           =   2355
  296.    End
  297. Attribute VB_Name = "Form1"
  298. Attribute VB_GlobalNameSpace = False
  299. Attribute VB_Creatable = False
  300. Attribute VB_PredeclaredId = True
  301. Attribute VB_Exposed = False
  302. Private Sub Check1_Click()
  303. ciaButton1.ShowFocusRect = IsChecked(Check1.Value)
  304. ciaButton2.ShowFocusRect = IsChecked(Check1.Value)
  305. ciaButton3.ShowFocusRect = IsChecked(Check1.Value)
  306. End Sub
  307. Private Sub ciaButton10_Click()
  308. End Sub
  309. Private Sub ciaButton9_Click()
  310. Form2.Show
  311. Unload Me
  312. End Sub
  313. Private Sub Form_Load()
  314. Me.Move (Screen.Width - Me.ScaleWidth) \ 2, (Screen.Height - Me.ScaleHeight) \ 2
  315. End Sub
  316. Private Function IsChecked(c As Integer) As Boolean
  317. If c = 1 Then IsChecked = True Else IsChecked = False
  318. End Function
  319.